﻿<%@ page language="java" import="base.tools.Address,java.util.*" pageEncoding="utf-8"%>
<%@   include   file= "/tag.jsp"   %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script src="jquery-1.6.2.min.js" type="text/javascript"></script>
<script type="text/javascript">           
  	function showtel() {
			$.post("/WebDbScnner/DBScan.HomeAction.do", { 
					opt :  "home" , 
					id :  $("#id").val() 
			}, 
			function (data){
				var content = document.createTextNode(data);
				  $("#t1").append(content);
				alert($("#id").val());
			})
};   
</script>
<%@ include file="alert.jsp" %>
  </head>
  
  <body>
  ${test}
    This is my JSP page. <br>
    <logic:notEmpty name="list">
	<logic:iterate id="li" name="list">
	<table> <tr> <td>
		    <bean:write name='li' property='a'/>
		    </td> <td>
		    <bean:write name='li' property='b'/>
		    </td><td>
		    <bean:write name='li' property='c'/>
		    </td><td>
		    <bean:write name='li' property='d'/>
		    </td></tr></table>
	</logic:iterate></logic:notEmpty>
    <table> <tr><td><form method="post" name="form" action="<%=request.getContextPath()%>/test.do?opt=opt">
    <input name="name" value="ceshi">
    <input type="submit" value="提交">
    </form></td></tr></table>
    <input name="id" id="id">
    <input type="submit" value="提交"  onclick="showtel();">
    <textarea rows="" cols="" id="t1" name="t1"></textarea>
  </body>
</html>
